package com.zxk.version3.provider;

import com.zxk.version3.api.BlogService;
import com.zxk.version3.api.UserService;

/**
 * @author 朱小康
 */
public class TestServer {
    public static void main(String[] args) {

        UserService userService = new UserServiceImpl();
        BlogService blogService = new BlogServiceImpl();

        ServiceProvider serviceProvider = new ServiceProvider();
        serviceProvider.provideServiceInterface(userService);
        serviceProvider.provideServiceInterface(blogService);
        
        RpcServer rpcServer = new SimpleRpcServer(serviceProvider);
        rpcServer.start(8083);
    }
}